package com.tqfframe.datamanage.listener;

import com.tqfframe.datamanage.event.DemoEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @Author: 唐祺峰
 * @Date: 2022/3/8 0008 15:55
 * @Version 1.0
 */
@Component
public class DemoListener2 implements ApplicationListener<DemoEvent> {

    @Override
    public void onApplicationEvent(DemoEvent event) {
        List<Map> msg = event.getMsg();
        String type = event.getType();
        System.out.println("我是事件2：我做一些日志业务");
    }
}